package com.bestcem.xm.user.util.convert;

import com.bestcem.xm.user.controller.vo.user.request.SkinVO;
import com.bestcem.xm.user.controller.vo.user.request.UpdateOrgBaseInfoVO;
import com.bestcem.xm.user.entity.mysql.Organization;
import com.bestcem.xm.user.entity.pojo.OrganizationDO;
import com.bestcem.xm.user.service.dto.user.OrganizationDTO;
import com.bestcem.xm.user.service.dto.user.SkinDTO;
import com.bestcem.xm.user.service.dto.user.UpdateOrgBaseInfoDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 公司转换类
 *
 * @author yanjishuo <jishuo.yan@idiaoyan.com>
 * @version v1.0
 * @date 2022/03/03 17:11
 */
@Mapper(componentModel = "spring")
public interface OrganizationConvert {

     Organization doToEntity(OrganizationDO pojo);

     OrganizationDO entityToDo(Organization organization);

     List<OrganizationDO> entitysToDos(List<Organization> organizations);

     OrganizationDO dtoToDo(OrganizationDTO dto);

     OrganizationDTO doToDto(OrganizationDO pojo);

     List<OrganizationDTO> dosToDtos(List<OrganizationDO> pojos);

     UpdateOrgBaseInfoDTO voToDto(UpdateOrgBaseInfoVO updateOrgBaseInfoVO);

     SkinDTO skinVoToSkinDto(SkinVO skinVO);
}
